/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javafx179labs.nez.hr.bean;

/**
 *
 * @author civil
 */
public class Task extends ObjHashId {
    private String task;
    private Integer performer = null;

    public Task () {

    }

    public Task(Integer id, String task) {
        this.id = id;
        this.task = task;
    }

    public Task(Integer id, String task, Integer performer) {
        this.id = id;
        this.task = task;
        this.performer = performer;

    }

    public Integer getPerformer() {
        return performer;
    }

    public String getTask() {
        return task;
    }

    public void setPerformer(Integer performer) {
        this.performer = performer;
    }

    public boolean hasPerformer() {
//        if (performer != null) {
//            return true;
//        } else {
//            return false;
//        }
        boolean has = false;
        if(performer!=null){
            has = true;
        }
        return has;
    }

}
